package org.zhangyp.n01jdkapi.n04thread;
/**
 * 筷子类
 * @author ypzhang
 * @since 2025/8/8
 */
public class Chopstick {
    private final String name;
    public Chopstick(String name) {
        this.name = name;
    }

    public void take(String  philosopherName) {
        System.out.println(philosopherName + " take " + name);
    }

    public void down(String  philosopherName) {
        System.out.println(philosopherName + " down " + name);
    }
}
